On uniqueness and strain localization in plane strain and plane stress elastoplasticity