One Transformer Can Understand Both 2D & 3D Molecular Data