Cloning, purification and characterization of a thermostable β-galactosidase from Bacillus licheniformis strain KG9.