Mesoscale Modeling of Defects and Phase Transformations in Crystalline Materials