Calculation of diatomic molecules in an ellipsoidal basis with floating foci