10-player England scrape past Nigeria to reach quarter-finals