Positronium cooling into nanopores and nanochannels by phonon scattering