Nanoporous PMMA foams with templated pore size obtained by localized in situ synthesis of nanoparticles and CO2 foaming