X-ray emission from jet–wind interaction in planetary nebulae