Linear and nonlinear constructions of DNA codes with Hamming distance d and constant GC-content