How to use phase diagrams and the lever rule to understand metal alloys