Constraints on inelastic dark matter from XENON10