On the selection and scaling of ground motions for fragility analysis of structures