Japan plans to scrap nuclear plants after 40 years