Pesticide and pharmaceutical intermediates