Boundary element methods in solid mechanics with applications in rock mechanics