Characterization of the Distortion-Perception Tradeoff for Finite Channels with Arbitrary Metrics