A General Framework for Transmission with Transceiver Distortion and Some Applications