Multicoated gratings: a differential formalism applicable in the entire optical region | Synapse