Learning Curves for Sequential Training of Neural Networks: Self-Knowledge Transfer and Forgetting