Comprehensive model for X-ray-induced damage in protein crystallography.