The psychosocial effects of economic inequality depend on its perception