when was the old city of dubrovnik built