Long-range magnetic order in the 5d2 double perovskite Ba2CaOsO6: comparison with spin-disordered Ba2YReO6