Announcing pregnancy to best friends who have lost babies

I just found out I am pregnant and two of my very close friends have lost babies - one ectopic and almost killed her, now leaving her infertile, and another who lost a baby at 21weeks. Both have had no luck conveiving and I just have NO idea how to tell them... Any advice is helpful.