Promoting resilience for teachers: pre-service and in-service professional learning