Early warning indicators and macro-prudential policies: a credit network agent based model