Study of the impact of the mining and metallurgical complex on groundwater and ways to address environmental problems