G7 leaders visit Japanese holy shrine ahead of summit