Higher order hierarchical Legendre basis functions in integral equation formulations applied to complex electromagnetic problems