Sunderland beat Cardiff City at home to keep their hopes of automatic promotion alive