Organic phototransistor based on intramolecular charge transfer in a bifunctional spiro compound