Reduction of cyclic anhydrides. II. Factors affecting regioselectivity of attack on the carbonyl group by metal hydrides