Frequency Estimation of Periodic Signals: an Adaptive Observer approach