Linear homotopy method for computing generalized tensor eigenpairs