Method for producing fluorinated carbamates and isocyanates with heterogeneous catalysts