Second mean value theorem for integrals