Fundamentals of Geomechanics