Anfonwch hwn fel neges destun: Melnikov-type method and homoclinic bifurcation in a class of hybrid piecewise smooth systems under noise and impulsive excitation