SMS: Retinal layer segmentation using gradient feature calculation in OCT