A Prognostic Energy Optimization Technique with unified power quality conditioner for energy stabilization in grid system