Federated and Transfer Learning-Empowered Intrusion Detection for IoT Applications