The effect of magnesium on early osseointegration in osteoporotic bone: a histological and gene expression investigation