Asymptotic analysis and singular perturbations approximating photonic and phononic crystals enabling rapid simulations of structured media for wave control over Bragg and deep-subwavelength scales