Generation of ultrastable microwaves via optical frequency division