Fragility curves for masonry buildings from empirical and analytical models