How the SNP were able to become party of working-class voter