How do systemic diseases like diabetes or osteoporosis affect the success rate of dental implants?

How do chronic conditions like diabetes or bone-related diseases impact the placement and durability of dental implants? Can these conditions lead to higher failure rates?