An electromagnetic neural network technique for detecting two dimensional objects embedded in lossy half-spaces