Flux-corrected transport. III. Minimal-error FCT algorithms