On {\L}ojasiewicz Inequalities and the Effective Putinar's Positivstellensatz