Internal electric field induced photocarriers separation of nickel-doped pyrite/pyrite homojunction with rich sulfur vacancies for superior Cr(VI) reduction.