Seismic sources in open and cased boreholes