Masses of tetraquarks with open charm and bottom