Micro-Pattern Gas Detectors for Charged-Particle Tracking and Muon Detection