Subclinical thyroid dysfunction, bone mineral density, and osteoporosis in a middle-aged Korean population