Vulnerability functions for contents, occupants and non-structural damage

Addresses https://bugs.launchpad.net/oq-engine/+bug/1174231