Macroeconomic fluctuations with HANK & SAM : an analytical approach