Molecular dynamics study of the threshold displacement energy in MgO