Compartmental observability approach for the optimal transparency problem in multi-agent systems