Photoluminescence quenching of porous silicon in gas and liquid phase The role of dielectric quenching and capillary condensation effects