Generating multiphoton Greenberger-Horne-Zeilinger states with weak cross-Kerr nonlinearity