Ecuador reaches preliminary deals on oil, mining with indigenous groups