Joint Compression and Digital Watermarking: Information-Theoretic Study and Algorithms Development