Position-dependent electrostatic protection against protein aggregation