Privacy preserving evaluation of signal quality with application to ECG analysis