Synthesis and Characterization of Multifunctional Transition Metal Oxide Nanoparticles through a Modified Sol-Gel Method with Application in Energy Storage