Cell Survival Computation via the Generalized Stochastic Microdosimetric Model (GSM2); Part I: The Theoretical Framework