Strain localization in unsaturated porous media