G-7 nations reach historic deal on global tax reform