how does the eagle adapt their habitats