Water mass variation in the Mediterranean and Black Seas