The Curie temperature of dilute ferromagnetic alloys near the percolation threshold