Gravar-mail: A 3D spatial spectral integral equation method for electromagnetic scattering from finite objects in a layered medium