Analysis of sparse contingency tables with penalization approaches