Frequency response analysis of hybrid systems