Highly efficient scheme for the implementation of optical controlled-Z gate via two-qubit polarization parity detector