Bidirectional communication between the immune and neuroendocrine systems: an evolutionary perspective