Analytical treatment of cold field electron emission from a nanowall emitter, including quantum confinement effects