Fluorescence and photoisomerization in photoactive proteins