Magnetospheric particle acceleration and X-ray emission of pulsars