Strain localization analysis using a multiscale model