A general model for nonmetric multidimensional scaling