On model reduction of hybrid systems