Strain localization and percolation of stable structure in amorphous solids.