History matching of petroleum reservoirs using deep neural networks