Formation of the S = -1 resonance X(2265) in the reaction pp → X+K+ at 2.50 and 2.85 GeV