Crystal-Field Tuning of Photoluminescence in Two-Dimensional Materials with Embedded Lanthanide Ions.