Regulated molecular rotor in phase transition materials with switchable dielectric and SHG effect