Lanthanide complexes of spiropyran photoswitch and sensor: spectroscopic investigations and computational modelling