Numerical implementation of the RBCI method for electromagnetic scattering