Karachi Stock Exchange ends on 7-week high, rupee flat