Sustainable synthesis of carbamate compounds