Dislocation dynamics analysis of the strengthening induced by shearable and non-shearable precipitates in the presence of dislocation pile-ups