DeepGate2: Functionality-Aware Circuit Representation Learning