Invariance principles in queueing theory