Rocking in presence of cracking of masonry wall piers