Task-Driven Implicit Representations for Automated Design of LiDAR Systems