Metastability of logit dynamics for coordination games