Ex-Chelsea central defender Ricardo Carvalho has been sentenced to seven months in prison as the Spanish courts find him guilty of tax offences.