Daniel Ricciardo sets the pace in Spain as ailing Lewis Hamilton toughs it out