Applications of molecular dynamics and Monte Carlo simulations to materials science and engineering