Pulse shapes in surface barrier detectors