Influence of the lipid phase state and electrostatic surface potential on the conformations of a peripherally bound membrane protein