Learning Automata of PLCs in Production Lines Using LSTM