The Magnus Expansion for Periodic Delay Differential Equations