Model-based deep autoencoders for characterizing discrete data with application to genomic data analysis