Thomas Young's ideas on light diffraction in the context of electromagnetic theory