A filter diagonalization for generalized eigenvalue problems based on the Sakurai-Sugiura projection method