On the computation of seismic fragility curves