During what century was the change from old to middle Persian just beginning?