Nara was the former capital for how many years