Systematic analysis of alternative polyadenylation from RNA-seq data