Fiscal policy in classical and Keynesian open economies