Quasi-integral utility for arbitrary preferences