Earth leakage in variable speed drives