Neutralino dark matter in supergravity theories with non-universal scalar and gaugino masses