Environmental and complexation effects on the structures and spectroscopic signatures of organic pigments relevant to cultural heritage: the case of alizarin and alizarin–Mg(ii)/Al(iii) complexes