Controlling color and photoisomerization pathways in photoactive proteins : the role of the protein environment