A geometric approach to stationary defect solutions in one space dimension