Comparative study of the electronic structure of natural and synthetic rubies using x-ray absorption and EDAX analysis