Synthesis, crystal structures and thermal behaviour of organic–inorganic hybrids incorporating a chiral diamine