Magnetic moment measurements of the first (2+) and second (4+) states of even Nd and Sm nuclei