Saida El Alami, a human rights activist, has been sentenced to two years in jail in Morocco for criticising authorities on social media.