Spain's second-largest oil company, Moeve, formerly known as Cepsa, posted a third-quarter loss after a sharp decline in refining margins hit its energy business.