Time reversibility and nonequilibrium thermodynamics of second-order stochastic processes.