Power and dependence relations in groups of agents