Optimizing Voltage and Reactive Power Compensation in a Distribution Grid Using Metaheuristic Technique