Modeling radicalization phenomena in heterogeneous populations