Characterizing the satellites of massive galaxies up to z ∼ 2: young populations to build the outskirts of nearby massive galaxies