What to know before purchasing real estate in a foreign country