Federated Learning-Based Intrusion Detection System for IoT Environments with Locally Adapted Model