Phases of melt-spun Sm1−xFe7+x alloys and magnetic properties of their nitrides