Representation of online handwriting using multi-component sinusoidal model