State the factors that determine gender identity.