Middlesbrough clinch promotion to the Premier League on goal difference after drawing with Brighton & Hove Albion.