A Model for Water Exchange Between the Baltic Sea and the Gulf of Riga