Spanish prime minister’s ex-right-hand man jailed on corruption charges