General properties of nonsignaling theories