Existence and regularity of extremal solutions for a mean-curvature equation