The two-component giant radio halo in the galaxy cluster Abell 2142