Electromagnetic inversion strategies for antenna design and characterization