Implement a queue data structure using only two stacks, and discuss the time complexity of enqueue and dequeue operations.