Development and application of the boundary integral and rigid block methods for geotechnics