Structure, function, and regulation of thioesterases.