Polymer translocation through a nanopore in mesoscopic simulations