Text this: A Coupled-Field Expansion Method for Single-Layer and Multilayer Planar Periodic Structures