Principles of Lipschitz continuity in neural networks