extractIntensity function

Extract intensity using peaks as template