Magnetic and Luminescent Properties of Sm, Eu, Tb, and Dy Coordination Polymers with 2-Hydroxynicotinic Acid