Regularity of Electromagnetic Fields in Convex Domains