Encoding Distortions for Multi-task Full-Reference Image Quality Assessment