Emission of terahertz electromagnetic waves from intrinsic Josephson junction arrays embedded in resonance LCR circuits