Adaptive Lighting for Curved and Nonuniform Objects in Optomechanical Inspection Systems