Core testing method to assess nonlinear behavior of brick masonry under compression