Analysis of risk factors that influence microvascular and macrovascular complications in patients with diabetes mellitus type 2