Mechanism and regulation of the nonsense-mediated decay pathway