Rydberg atoms with a reduced sensitivity to dc and low-frequency electric fields