Electronic structure of Y2M17 intermetallic compounds