During what century was the change from Old to Middle Persian well underway