A neural network-based approach to hybrid systems identification for control