Synthesis and characterization of MFe2O4 (M: Zn, Ca, Mg) ferrites for photcatalytic and photoelectro catalytic hydrogen generation applications