Micromechanical approach to masonry: discrete finite element model and continuum homogenised model