Costly coal has pushed Karnataka to become India’s renewables leader