Quasi-long range order in glass states of impure liquid crystals, magnets, and superconductors