Structural characterisation of porous materials in relation to entrapment of non-wetting fluids