Sunderland have been promoted to the Premier League after beating Sheffield United in the play-off final.