Energy deposition of protons in molecular nitrogen and applications to proton auroral phenomena