Dependency of deformation twinning on grain orientation in an FCC and a HCP metal