Principles of applied optics