Generalization Error Bounds for Iterative Recovery Algorithms Unfolded as Neural Networks