Improving Performance of Networked Control Systems by Using Adaptive Buffering