Regularity of the extremal solutions for the Liouville system