On the use of genetic algorithms to assess the seismic resistance of planar frame structures