Single-molecule optoelectronic devices: physical mechanism and beyond