Mel’nikov Methods and Homoclinic Orbits in Discontinuous Systems