Method and apparatus for detecting location of a mobile station