Spectral analysis of Markarian 421 and Markarian 501 with HAWC