Denial-of-Service Attack Detection using Machine Learning in Network-on-Chip Architectures