The singularity and eigenmode expansion methods with application to equivalent circuits and related topics