Gamma-ray bursts in the Swift era