Social interactions and heterogeneous agent models. Applications to economics and finance