SMS: The electromagnetic origin of quantum theory and light