Research on the optimal allocation of safety investment in construction enterprises