Matrix realization of dual quaternionic electromagnetism