Shape-controlled hydrothermal synthesis of CuFe2O4 nanocrystals for enhancing photocatalytic and photoelectrochemical performance