若抛物线y 2 =2px的焦点与双曲线x 2 -y 2 =2的右焦点重合,则p的值为(  ) A.-2 B.2 C.-4