Mechanisms and applications of photoinduced processes in fluorescent proteins