A solution- and solid-state investigation of medium effects on charge separation in metastable photomerocyanines.