Magnetic phase transitions in interstitial compounds Er2Fe17-xCx