On the origin of very-high-energy photons in astrophysics: A short introduction to acceleration and radiation physics