Separation of variables for the Hamilton-Jacobi equation on complex projective spaces