Effect of protein environment on electronically excited and ionized states of the green fluorescent protein chromophore.