Complete mappings in some linear and projective groups