Singlet-triplet energy gaps in fluorine-substituted methylenes and silylenes