Experimental critical quantum metrology with the Heisenberg scaling