Response of indeterminate two-span beam to spatially varying seismic excitation