Mg-H collision rates for non-LTE determination of stellar atmospheric parameters