Controlled Metal Oxide and Porous Carbon Templation Using MetalOrganic Frameworks