A reputation mechanism for dynamical interactions in multi-agent systems under quality of service requirements