Domain structures in thin-film discrete magnetic tracks