A novel integral formulation for the solution of Maxwell equations