US election: How it works and why swing states are key