Quality control of electronics and mechanical parts