Nucleoli as maximizers of collective satisfaction functions