Revolution in Libya and labour strikes in Argentina drive down Spanish oil group’s earnings as it endures a turbulent period in its history