Renewable generation versus demand-side management. A comparison for the Spanish market