Lattice relaxation and resonant X-ray emission of C 1s core exciton in diamond