Optimum synthetic-aperture imaging of extended astronomical objects