Vulnerability analysis of building structures to floods