Evaluation of the effects of an external incident electromagnetic wave on metallic enclosures with rectangular apertures