Convergence rates of recombining trees for pricing options on stocks under GBM and regime-switching models with known cash dividends