Estimation of the domain of attraction for a class of hybrid systems