Surface and size effects on the thermodynamics of the dilute classical 1D planar model