States on timelike hypersurfaces in quantum field theory