Generating a four-photon polarization-entangled cluster state with homodyne measurement via cross-Kerr nonlinearity