Devaluation painful but necessary, says IMF chief