Central bank operations in foreign and domestic assets under fixed and flexible exchange rates