Spectroscopic instrumentation : fundamentals and guidelines for astronomers