Force-free Magnetic Fields: Generating Functions and Footpoint Displacements