Independent Scotland would have to join EU