Seol mar théacs é seo: Melnikov-type method and homoclinic bifurcation in a class of hybrid piecewise smooth systems under noise and impulsive excitation