Thickness dependence of the critical concentration in diluted ferromagnetic thin films