Leonardo Ulloa scored twice as Leicester City defeated Swansea City and moved closer to clinching the Premier League title.