Text this: Principles of fin and flipper locomotion on granular media