FourierNets enable the design of highly non-local optical encoders for computational imaging