Mechanics of universal horizons