Full characterization of optical Transition-Edge Sensor by impedance spectroscopy measurements in a bandwidth extending to 1 MHz