Using Hankel matrices for dynamics-based facial emotion recognition and pain detection