Density-dependent carrier-envelope phase shift in attosecond pulse generation from relativistically oscillating mirrorsстатья