A fracture mechanics based seismic analysis of concrete gravity dams using discrete cracks