Synthesis of inorganic materials with complex form