Japan to ease state of emergency before Olympics