SMS: Flame photometry theory