A sensitive electrometer based on a Rydberg atom in a Schrödinger-cat state