Resonant tunneling diodes strongly coupled to the cavity field