Nonlinear potential theory on metric spaces