Equation of state of magnetar crusts from Hartree-Fock-Bogoliubov atomic mass models