Lasing in cholesteric liquid crystal cells: Competition of Bragg and leaky modes