Structural, magnetic and microscopic physical properties of (Sm, Pr)2Fe17 and their nitrides