Weighted barycentric sets and singular Liouville equations on compact surfaces