Fully relativistic density functional calculations of the ground and excited states of Yb, YbH, YbF, and YbO