refactor ```conditional_loss_ratio``` to avoid usage of the Curve class

Needed to address https://bugs.launchpad.net/openquake/+bug/1159865