Analytic Bjorken flow in one-dimensional relativistic magnetohydrodynamics