A German woman who allegedly joined Islamic State has gone on trial accused of letting a five-year-old Yazidi girl she kept as a slave die of thirst while chained outside in the "scorching heat".