Inhibition kinetics and emodin cocrystal structure of a type II polyketide ketoreductase.