Boundary Detection in Three Dimensions With Application to the SMILE Mission: The Effect of Photon Noise