Swansea made their numerical advantage count as they beat 10-man Sunderland 3-1 at the Stadium of Light.