Analysis of bridges under seismic action