Photoproduction of the ω meson on the proton near threshold