Atomistic underpinnings for growth direction and pattern formation of hcp magnesium alloy dendrite