A general model of cooperativity and its application to DPG inhibition of hemoglobin oxygenation