Efficient and intuitive modelling of electromagnetic nanoresonators and complex metasurfaces