A finite-sample generalization bound for stable LPV systems