Maintaining ecosystem resilience: functional responses of tree cavity nesters to logging in temperate forests of the Americas