Atomic view of the histidine environment stabilizing higher-pH conformations of pH-dependent proteins