Good student and teacher well-being supports engaging and effective learning