Recurrent Neural Networks for Dynamic Reliability Analysis