Radiation-induced melting in coherent X-ray diffractive imaging at the nanoscale