Synthesis, metal complex formation, and switching properties of spiropyrans linked to chelating sites