Real-time control of a tokamak plasma using a hardware neural network