Leveraging network information to improve population size estimation in social and environmental applications