Optimized seismic hazard and structural vulnerability model considering macroseismic intensity measures