On the constrained minimization of smooth Kurdyka– Lojasiewicz functions with the scaled gradient projection method