A Stokes theorem for second-order tensor fields and its implications in continuum mechanics