Energy crisis will take 2 years to resolve: Finance Minister