Investigating the E2 nuclear resonance effect in kaonic atoms