Japan advance to the Round of 16 after a 2-1 win over Spain as Germany make a group-stage exit for the second successive campaign