What is the primary function of a Variable Frequency Drive (VFD) when applied to motor-driven systems?