Moeen Ali century helps England seize the day at Edgbaston