More int -> double conversions to avoid overflows on _very_ big systems in which
the square of the number of particles in the dominant LJ type overflows
integers.