Simplified theory of X-ray edge in metals