Swansea ended Newcastle’s four-match winning run with a 3-0 win over Alan Pardew’s side at the Liberty Stadium.