Energy distribution measurement of narrow-band ultrashort x-ray beams via K-edge filters subtraction