Adsorption in mesopores: a molecular-continuum model with application to MCM-41