How can mining affect the environment?