Tip of the Red Giant Branch distances to galaxies with composite stellar populations