Text this: A new electromagnetic model for determining the speed of photon absorption in a photocatalytic process for wastewater treatment