added a function to formulate multibasis states into cartesian (single basis) form