Constraining chaos: Enforcing dynamical invariants in the training of reservoir computers.