Variable length pendulum analyzed by a comparative Fourier and wavelet approach