A Parameter Optimized Variational Mode Decomposition Method for Harmonic and Inter-harmonic Detection