Foundations of materials science and engineering