Modi’s former chief economist explains why demonetisation was popular despite the pain