A phase space model of Fourier ptychographic microscopy