The displacement discontinuity method for the analysis of rock structures:a fracture mechanics approach