A 72-year-old man is evaluated for a 1-year history of progressive worsening of bilateral knee pain and stiffness. He has had no locking, popping, or giving way in either knee. He has pain in both knees at rest and at night, which awakens him from sleep. He has no history of injury. Acetaminophen and over-the-counter ibuprofen improve his pain temporarily.

On physical examination, vital signs are normal. BMI is 35. Bilateral bony hypertrophy and valgus deformity of the knees are noted. There is no warmth, erythema, swelling, or effusion. Anterior drawer sign is negative, and there is no compromise in stability.

Which of the following studies of the knees is the most appropriate diagnostic test to perform next?