Synchronization of a variable frequency source with a fixed frequency source using a sliding-mode controller