Vulnerability model using structure dependent intensity measure types

Addresses https://bugs.launchpad.net/openquake/+bug/1149270