On the cognitive impact of endogenous and exogenous hormone exposures across the lifespan