Characterisation and compensation of nonlinearities in microwave transmitters