Groundwater quality assessment for domestic and agricultural purposes in Yan’an City, northwest China: implications to sustainable groundwater quality management on the Loess Plateau