Mean value theorems for vector-valued functions