Koopman-Based Generalization of Deep Reinforcement Learning With Application to Wireless Communications