Synthesis of Nanomaterials and Photo/Electrocatalytic Applications