Variational and active surface techniques for acoustic and electromagnetic imaging