An in situ measure method to study deposition mechanism of electroless Ni-P plating on AZ31 magnesium alloy