Dual nature of electromagnetic radiation