Electrodeposition of epitaxial metal thin films on silicon for energy conversion and flexible electronics