Erosion and flooding in the Community of Madrid