Optical–Mid-infrared Period–Luminosity Relations for W UMa-type Contact Binaries Based on Gaia DR 1: 8% Distance Accuracy