Smartphone-based crowdsourcing for network monitoring: opportunities, challenges, and a case study