Modi gets Trump invite to attend G7 summit, ministry says