Q-Bench: A Benchmark for General-Purpose Foundation Models on Low-level Vision