Where two things belonging to different masters, which have been united so as to form a whole, are nevertheless separable, so that one can subsist without the other, the whole belongs to the master of the thing which forms the principal part, on the charge of paying to the other the value, estimated at the date of payment, of the thing which has been united.