The effect of electromagnetic fields on the lifetime of unstable particles