X-ray emission from early-type galaxies