RESPONSES OF CAVITY-NESTING BIRDS TO CHANGES IN AVAILABLE HABITAT REVEAL UNDERLYING DETERMINANTS OF NEST SELECTION