Zero-field splitting of the self-trapped exciton in alkali fluorides and alkaline-earth fluorides