Universal quantum gates for hybrid system assisted by atomic ensembles embedded in double-sided optical cavities