Theoretical and experimental investigation of the light shift in Ramsey coherent population trapping