Deep neural network surrogates for inverse problems