Twenty-one schoolgirls who had been kidnapped by the Islamist group Boko Haram in the Nigerian town of Chibok have been reunited with their families.