The chemical composition of the protoplanetary nebula candidate HD 179821