A model for predicting critical size for dislocation formation in phase transforming planar particles of energy storage intercalation materials