A Noninvasive Method to Identify Larvae in Apples Based on Wavelets