Crosscap States in Integrable Field Theories and Spin Chains