Sunderland ended a run of two consecutive Premier League defeats with an impressive 3-0 win over an under-par West Ham United at the Stadium of Light.