Modeling elastic and plastic deformations in nonequilibrium processing using phase field crystals.