How landforms and geology affect the structure of riparian areas