Cross-field demagnetization of stacks of tapes: 3D modeling and measurements