Stopping Rules for Class of Sampling-Based Stochastic Programming Algorithms