Tsunamis excited by near-shore seismic sources: an analytical study