Text this: Advanced perspective on heavily phosphorus-doped diamond layers via optical emission spectroscopy