Aeromechanics of membrane and rigid wings in and out of ground-effect at moderate Reynolds numbers