Text this: A Theoretical Framework for Quality-Aware Cross-Layer Optimized Wireless Multimedia Communications