Fragility model with Structure-Dependent intensity measure type

Changes required for https://bugs.launchpad.net/openquake/+bug/1154549