A molecular dynamics approach to grain boundary structure and migration