A mean value theorem for K-directional epiderivatives