Understanding Mortar in Brick Masonry: Composition and Key Functions