A novel method to measure the primary stability of dental implants and orthodontic screws