Preparation of Nanoporous Carbon Using an Aluminophosphate Framework Template