Efficient preparation of a four-photon cluster state with homodyne measurement via cross-Kerr nonlinearity