A systematic study of photoionization of free lanthanide atoms in the 4d giant resonance region