Calculation of the spin-polarized energy-band structure of LaNi5and GdNi5