Visual inspection system for the classification of solder joints