Big oil and gas companies are shifting their focus to wealthier countries after decades of exploring and producing in developing nations, lured by political stability and more predictable returns.