Order isomorphisms in cones and a characterization of duality for ellipsoids