Detection of bruises in magnetic resonance images of apples