Condylar erosion is predictive of painful closed lock of the temporomandibular joint: a magnetic resonance imaging study