Optical transitions and sum rules at clean semiconductor surfaces