On the formation mechanisms and properties of MAX phases: A review