Inorganic and organometallic polymers