Intelligent sensory pen for aiding in the diagnosis of parkinson’s disease from dynamic handwriting analysis