On the mean value theorem for semidifferentiable functions