Time harmonic electromagnetic scattering from a bounded obstacle: an existence theorem and a computational method