Effective Protocol for Generation of the Greenberger-Horne-Zeilinger State and Implementation of Controlled Phase Gate with Cross-Kerr Nonlinearity