Inverse diffraction for the Atmospheric Imaging Assembly in the Solar Dynamics Observatory