how does mining affect the environment