Automatic selection of test frequencies for the diagnosis of soft faults in analog circuits