Characterization of the gamma-limits of unilateral obstacles