Parallelization of hierarchical matrix algorithms for electromagnetic scattering problems