Artificial molecular devices and machines driven by light