why do mangroves grow in marshy areas