Spacecraft inertial parameters estimation using time series clustering and reinforcement learning