Added getSubgroups() helper function to joint model groups

There was a ``std::string getSubGroupsNames()`` but no method to get the ``JointModelGroup*`` pointers directly.