Structure, thermodynamic, electrical and surface properties of Cu–Mg binary alloy: complex formation model