Influences of dam structure on dynamics of riparian forests