Different effect of cerium and gadolinium impurities on the pressure dependence of the superconducting transition temperature of lanthanum