Positronium formation in porous materials for antihydrogen production