The G7 deal will force tax havens like Ireland to rethink their economy