Synthesis of 3D-hiearchical LiMPO4 (M = Fe, Mn) microstructures as cathode materials for lithium-ion batteries