Variational Modelling of Strain Localization in Solids: A Computational Mechanics Point of View