Unbiased retrieval of frequency-dependent mechanical properties from noisy time-dependent signals