when to recognize an ectopic pregnancy