Analytical Formulas for Artificial Dielectrics with Nonaligned Layers