Seismic-generated unsteady motions in shallow basins and channels. Part I: Smooth analytical solutions