Tuning the interaction between carbon nanotubes and dipole switches: the influence of the change of the nanotube–spiropyran distance