Principles of astronomical instruments