Attraction and risk in urban bird habitats