A BGK model for mixtures of monoatomic and polyatomic gases with discrete internal energy