Photo-controllable coil-to-globule transition of single polymer molecules