The scaled gradient projection method: an application to nonconvex optimization