Template-based fabrication of SrTiO3 and BaTiO3 nanotubes.