Discuss the principles of geotechnical investigation and its importance in site selection and foundation design.