Diffraction effects on light-atomic-ensemble quantum interface