Coannihilation effects in supergravity and D-brane models