Goal-oriented semantic communication: A rate distortion approach