Rare-earth dopants for mechanoluminescence: from fundamentals to advanced applications