Adaptive Submodularity: Theory and Applications in Active Learning and Stochastic Optimization