Measurement of the photoproduction phases of the ρ, ω and ϕ mesons