Weighted Sobolev spaces on metric measure spaces