Model for the formation of arsenic contamination in groundwater. 1. Datong Basin, China