Neighborhood amenities and their impact on density gradients