G7 nations make deal to tax big companies