UniDyG: A Unified and Effective Representation Learning Approach for Large Dynamic Graphs