An adaptive wavelet transform for solutions of electromagnetic integral equations