Explain the role of moisture content, soil type, and compaction methods in achieving desired density levels. Explore the consequences of inadequate compaction on structural integrity and long-term performance. Additionally, analyze common techniques employed to ensure proper compaction and mitigate potential risks to infrastructure projects. Provide examples to illustrate your points."