Examine the theoretical basis of human factors engineering, including concepts such as ergonomics, cognitive psychology, and usability engineering, and discussing their applications in designing products, systems, and environments that optimize human performance, safety, and well-being.