Singly-periodic Stokes flow and the simulation of cilia