factors affecting bone mineral density