Fundamentals of Earthquake Engineering: From Source to Fragility