Numerical analysis of a reciprocating active magnetic regenerator made of gadolinium wires