Optically Induced Molecular Logic Operations.