Control of Generalized Discrete-time SIS Epidemics via Submodular Function Minimization