Glenmark to spin off generics business