Germany has become Europe's first country to allow babies with characteristics of both sexes to be registered as neither male nor female.