A multi-resolution approach to electromagnetic modelling