Elimination of the skyrmion Hall effect by tuning perpendicular magnetic anisotropy and spin polarization angle