Nonvolatile monolithic three-dimensional field programmable gate array with stacked resistive configuration memory