Anharmonic Debye-Waller factors using quantum statistics