Optimal monetary and fiscal policy in a currency union