Electronic structure of GaInN semiconductors investigated by x-ray absorption spectroscopy