Extended knife-edge method for characterizing sub-10-nm X-ray beams