EMPERROR: A Flexible Generative Perception Error Model for Probing Self-Driving Planners