Global rating agency says upgrade reflects Pakistan's improved funding conditions after IMF agreement