Coal to remain primary source of energy till 2040: Agarwal