Solutions of Benjamin-Bona-Mahony, modified Camassa-Holm and Degasperis-Procesi equations using an iterative method