Spectral domain characteristic basis function method for efficient simulation of microstrip devices in layered media