Analytical study of the deterioration of sandstone, marble and granite