Microwave nondestructive testing: A stochastic optimization approach