Continuous-variable quantum probes for structured environments