alpha-gamma transition in metallic Ce studied by resonant x-ray spectroscopies