A construction of higher-rank lattice rules