Mechanistic slumber vs. statistical insomnia: the early history of Boltzmann’s H-theorem (1868–1877)