Discrepancy and numerical integration in Sobolev spaces on metric measure spaces