Crystal structure and optical spectroscopy of Er2[Pt(CN)4]3.21H2O and Er2[Pt(CN)4]2.SO4.11.5H2O.