X-Ray Imaging of Planetary Nebulae with Wolf-Rayet-type Central Stars: Detection of the Hot Bubble in NGC 40