Q-learning-based opportunistic communication for real-time mobile air quality monitoring systems