AN OPTIMAL FILTER FOR THE DETECTION OF GALAXY CLUSTERS THROUGH WEAK LENSING