Scots writer Maggie Ritchie shortlisted for prize