Japanese stocks close at a 21-year high