iiw.weights function

Compute inverse-intensity weights.