bugfix and rationalization in format-nn

bugfix: first version of parameters called format-nn with missing nnstru arg

rationalization: changed (get nnstru mat-key) to (mat-key nnstru) so
that mat-key can be either a keyword selector or a function such as
wt-mat or pos-wt-mat in nets.clj.