Effective mechanical properties of lattice materials