Modelling of electromagnetic coupling inside a metallic enclosure with conducting planes