Explain the methods for construction of various types of foundations, including spread, raft, and mat foundations.