Swelling in organic-inorganic multilayer systems