Simulation-based Planning of Machine Vision Inspection Systems with an Application to Laser Triangulation