A Three-phase Model for the Structure of Porous Thin Films Determined by X-ray Reflectivity and Small-Angle Neutron Scattering