Generation of spectrum compatible ground motion and its use in regulatory and performance-based seismic analysis