Which three nations occupied Estonia up until 1918