On the estimation of a celestial reference frame in the presence of source structure