Identification via Fourier series for a class of lumped and distributed parameter systems