A reconfigurable miniaturized transducer based on rotating coils for testing particle accelerator magnets