Rare medieval script discovered on stone carved by Scotland's 'Painted People'