A panel data analysis of the fiscal sustainability of G-7 countries