Batch Scheduling for Energy-Efficient Sensing in Smartphones