Prion protein structure is affected by pH-dependent interaction with membranes: a study in a model system