Shawn Porter took the IBF welterweight from Devon Alexander with a unanimous points victory at the Barclays Center in Brooklyn.