Pulsar wind nebulae and the nonthermal X-ray emission of millisecond pulsars