Photoproduction of K+ mesons at 3.4 and 5.0 GeV