The Mössbauer effect for an impurity nucleus: I. Theoretical results for bravais crystals