Generation of percolation cluster perimeters by a random walk