Matthews scores a hat trick, Sandin returns with style as Leafs beat Devils