RTC and density variation in the estimation of local geoids