Locally-symplectic neural networks for learning volume-preserving dynamics