An El Salvador court has rejected the appeal of a woman sentenced to 30 years in prison for what she says was a stillbirth.