Study of Downhole Electromagnetic Boundary-Detection Methods Using Numerical Simulations