How India could have averted power crisis