Bone graft implants for filling a bony defect or an endoprosthesis cavity