A method to minimize edge effects in two‐dimensional discrete Fourier transforms