SNP presiding over ‘crisis’ in education as teacher posts unfilled, say Lib Dems