Handling Class Imbalance in Federated Learning for Cyber-Physical Attack Detection