Deterministic creation of entangled atom–light Schrödinger-cat states