A matrix-operator approach to reflection high-energy electron diffraction theory | Synapse