Magnetoresistance in actinide and lanthanide intermetallics