AVERAGING OF BOUNDARY VALUE PROBLEMS WITH A SINGULAR PERTURBATION OF THE BOUNDARY CONDITIONS