Germany will return Namibian skulls taken for scientific experiments after the first genocide of the 20th century.