Deposition of multilayers of inorganic material