Detachment of plasters in masonry buildings: analysis by acoustic emission and numerical simulation