Moroccan journalist and rights activist Omar Radi has been sentenced on appeal to six years in prison on espionage and rape charges.