Modelling micro and macro failure surfaces of media with microstructure