Japan to pardon half a million criminals