Structure, exchange interactions, and magnetic phase transition of Er2Fe17-xAlx intermetallic compounds