A Jacobi-Davidson-type projection method for nonlinear eigenvalue problems