Long-period variable stars in NGC 147 and NGC 185 – I. Their star formation histories | Publicación