The symmetric genus of alternating and symmetric groups