Dense and smooth lattices in any genus