Anharmonicity and Doping Melt the Charge Density Wave in Single-Layer TiSe2