Dynamic optimization based reactive power planning for improving short-term voltage performance