Investigation of nonlinear effects in Josephson parametric oscillators used in circuit quantum electrodynamics