Two-photon conversion of a bacterial phytochrome