Propionic acid derivatives confined in mesoporous silica: monomers or dimers? The case of ibuprofen investigated by static and dynamic ab initio simulations