Cauchy and Cosserat Equivalent Continua for the Multiscale Analysis of Periodic Masonry Walls