Nonlinear dynamic analysis of structures subjected to seismic action