A Theory of Rational Demand for Index Insurance