Habitat selection in mosaic landscapes