Systematic study of M1 strength in the rare-earth region