In Silico Study of Molecular-Engineered Nanodevices: A Lockable Light-Driven Motor in Dichloromethane Solution