The Effects of Teachers’ Working Conditions on Their Professional Satisfaction and Their Students’ Achievement