Reconstruction of gated dynamic cardiac SPECT data using spatiotemporal basis functions