OptiFLIDS: Optimized Federated Learning for Energy-Efficient Intrusion Detection in IoT