Chemical synthesis of solid inorganic materials