Neural nets for indirect inference