Impedance measurements on a fast transition-edge sensor for optical and near-infrared range