Density estimation in line transect sampling with grouped data by local least squares