The three-loop relation between the and the pole quark masses