A study on automated segmentation of retinal layers in optical coherence tomography images