D-mesons in dense nuclear matter