Methods of detecting extrasolar planets