Molecular assemblies confined in mesopores: Phase transformations and transport phenomena