Structure and magnetism in DyxPr1-x and ErxPr1-x alloys: II. Double-hexagonal close-packed structure