An Architecture for Embedding Knowledge in the Design of Electromagnetic Devices