Templated synthesis of carbon materials mediated by porous clay heterostructures