Inorganic self-organisation in precambrian cherts