Controllability and singularities in the n-trailer system with kingpin hitching