Theoretical analysis of deep neural networks for temporally dependent observations