Generalized Dijkgraaf-Witten theories and stable diffeomorphism types of 4-manifolds, I