England beat Japan to top Group B and reach the quarter-finals.