Compressed-Domain Deep Learning with Application to Image Recognition and Universal Adversarial Attack