A general approach to porous crystalline TiO2, SrTiO3, and BaTiO3 spheres.