Electronic and atomic structures of the Si-C-N thin film by x-ray-absorption spectroscopy and theoretical calculations