The ecology of citizenship: understanding vulnerability in urban Brazil