Nonequilibrium variational cluster perturbation theory: Quench dynamics of the quantum Ising model