gold gains, oil falls following spain ratings cut