Design of earth dams