Non-supersymmetric tachyon-free type-II and type-I closed strings from RCFT