A US woman who wrote a children's book about coping with grief after her husband's death has been convicted of murdering him in their Utah home.