Notes on D-optimal designs