On the use of neural networks for the structural characterization of polymeric porous materials