Syntheses, structures and properties of a series of organic–inorganic complexes based on methylenediisophthalic acid (H4MDIP)